def window():
    return HtmlPage.Window
    
def alert(msg):
    win = window()
    win.Alert(msg)

def doc():
    return document